<?php
	/**
	 * Programmers' guide
	 */
	class GuideController extends Controller
	{
		public $page_title = LANG_GUIDE;
		public $layout = 'main';
		public $module = 'guide';
		public $helpers = array ('html', 'htmlx', 'toolbars', 'help', 'grids');
		public $name = 'guide';
		public $checkAccess = false;
			
		/**
		 * Grid programmers guide
		 **/		
		function viewGrid()
		{
			$this->menuItem = 'grid';
		}
		
		/**
		 * Toolbar programmers guide
		 **/		
		function viewToolbar()
		{
			$this->menuItem = 'toolbar';
		}
			
		/**
		 * Model programmers guide
		 **/	
		function viewModel()
		{
			$this->menuItem = 'model';
		}
		
		/**
		 * Controller programmers guide
		 **/	
		function viewController()
		{
			$this->menuItem = 'controller';
		}
	
		function view($name)
		{
			$this->layout = 'popup';
			$this->data[name] = $name;
		}
	}
?>